package com.project.bean;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

public class UserBean {
    private Integer uId;
    @NotNull(message="不能为空")
    @Pattern(regexp="^([a-z]|[A-Z]|[0-9]){8}$",message="账号是以数字或者字母开头的8位数")
    private String uUsername;
    @NotNull(message="不能为空")
    @Length(min=6,message="密码长度不能小于6位")
    private String uPwd;
    private String uName;
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^(((13[0-9])|(14[579])|(15([0-3]|[5-9]))|(16[6])|(17[0135678])|(18[0-9])|(19[89]))\\d{8})$", message = "手机号格式错误")
    private String uPhonenumber;
    private Integer uType;
    private Integer uAccess;

    private String uImg;

    private String uAddress;

    private String uCoordinate;

    private Integer uFollow;

    private Integer uFollowed;
    
    private Double uXcoordinate;
    
    private Double uYcoordinate;
    
    private String yanzhengma;
    
    private String syanzhengma;


    public Integer getuId() {
        return uId;
    }

    public void setuId(Integer uId) {
        this.uId = uId;
    }

    public String getuUsername() {
        return uUsername;
    }

    public void setuUsername(String uUsername) {
        this.uUsername = uUsername == null ? null : uUsername.trim();
    }

    public String getuPwd() {
        return uPwd;
    }

    public void setuPwd(String uPwd) {
        this.uPwd = uPwd == null ? null : uPwd.trim();
    }

    public String getuName() {
        return uName;
    }

    public void setuName(String uName) {
        this.uName = uName == null ? null : uName.trim();
    }

    public String getuPhonenumber() {
        return uPhonenumber;
    }

    public void setuPhonenumber(String uPhonenumber) {
        this.uPhonenumber = uPhonenumber == null ? null : uPhonenumber.trim();
    }

    public Integer getuType() {
        return uType;
    }

    public void setuType(Integer uType) {
        this.uType = uType;
    }

    public Integer getuAccess() {
        return uAccess;
    }

    public void setuAccess(Integer uAccess) {
        this.uAccess = uAccess;
    }

    public String getuImg() {
        return uImg;
    }

    public void setuImg(String uImg) {
        this.uImg = uImg == null ? null : uImg.trim();
    }

    public String getuAddress() {
        return uAddress;
    }

    public void setuAddress(String uAddress) {
        this.uAddress = uAddress == null ? null : uAddress.trim();
    }

    public String getuCoordinate() {
        return uCoordinate;
    }

    public void setuCoordinate(String uCoordinate) {
        this.uCoordinate = uCoordinate == null ? null : uCoordinate.trim();
    }

    public Integer getuFollow() {
        return uFollow;
    }

    public void setuFollow(Integer uFollow) {
        this.uFollow = uFollow;
    }

    public Integer getuFollowed() {
        return uFollowed;
    }

    public void setuFollowed(Integer uFollowed) {
        this.uFollowed = uFollowed;
    }

    
    
	public Double getuXcoordinate() {
		return uXcoordinate;
	}

	public void setuXcoordinate(Double uXcoordinate) {
		this.uXcoordinate = uXcoordinate;
	}

	public Double getuYcoordinate() {
		return uYcoordinate;
	}

	public void setuYcoordinate(Double uYcoordinate) {
		this.uYcoordinate = uYcoordinate;
	}
     
	
	public String getYanzhengma() {
		return yanzhengma;
	}

	public void setYanzhengma(String yanzhengma) {
		this.yanzhengma = yanzhengma;
	}

	public String getSyanzhengma() {
		return syanzhengma;
	}

	public void setSyanzhengma(String syanzhengma) {
		this.syanzhengma = syanzhengma;
	}

	@Override
	public String toString() {
		return "UserBean [uId=" + uId + ", uUsername=" + uUsername + ", uPwd=" + uPwd + ", uName=" + uName
				+ ", uPhonenumber=" + uPhonenumber + ", uType=" + uType + ", uAccess=" + uAccess + ", uImg=" + uImg
				+ ", uAddress=" + uAddress + ", uCoordinate=" + uCoordinate + ", uFollow=" + uFollow + ", uFollowed="
				+ uFollowed + ", uXcoordinate=" + uXcoordinate + ", uYcoordinate=" + uYcoordinate + ", yanzhengma="
				+ yanzhengma + ", syanzhengma=" + syanzhengma + "]";
	}

	

	
}